package com.jin.service.Impl;

import com.jin.mapper.UserJobMapper;
import com.jin.pojo.UserJob;
import com.jin.service.UserJobService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserJobServiceImpl implements UserJobService {

    @Autowired
    UserJobMapper userJobMapper;

    @Override
    public int insertUserJob(UserJob userJob) {
        return userJobMapper.insertUserJob(userJob);
    }

    @Override
    public int delUserJob(Integer id) {
        return userJobMapper.delUserJob(id);
    }

    @Override
    public int updateUserJob(UserJob userJob) {
        return userJobMapper.updateUserJob(userJob);
    }

    @Override
    public UserJob getUserJobById(Integer id) {
        UserJob userJobById = userJobMapper.getUserJobById(id);
        return userJobById;
    }

    @Override
    public List<UserJob> getUserJob() {
        List<UserJob> userJob = userJobMapper.getUserJob();
        return userJob;
    }
}
